﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.master"
    Inherits="InStoreDataMeasures_MeasuresDetail_Select_List" CodeFile="MeasuresDetail_Select_List.aspx.cs" %>

<%@ Register Src="~/UserControl/GridPager.ascx" TagName="GridPager" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>指标组列表 </title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script src="../JavaScript/empchecks.js" type="text/javascript"></script>
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
    </asp:ScriptManagerProxy>
    <asp:UpdatePanel UpdateMode="Conditional" ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div>
                <table id="wsd_inputtable" width="100%">
                    <tr>
                        <td class="tabletitle" colspan="7">
                            指标明细管理
                        </td>
                    </tr>
                    <tr>
                        <td class="tablefield">
                            关键字：
                        </td>
                        <td>
                            <asp:TextBox ID="txt_key" runat="server"></asp:TextBox>
                        </td>
                         <td class="tablefield">
                            状态：
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownList1" runat="server">
                                <asp:ListItem Value="">--全部--</asp:ListItem>
                                <asp:ListItem Selected="True" Value="0">未分配</asp:ListItem>
                                <asp:ListItem Value="1">已分配</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="tablefield">
                            有效：
                        </td>
                        <td>
                            <asp:DropDownList ID="ddl_active" runat="server">
                                <asp:ListItem Value="">--全部--</asp:ListItem>
                                <asp:ListItem Selected="True" Value="1">--有效--</asp:ListItem>
                                <asp:ListItem Value="0">--无效--</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:Button ID="btnSearch" runat="server" class="wsd_button2" CausesValidation="false"  Text="查 询" 
                                onclick="btnSearch_Click" />
                        </td>
                    </tr>
                </table>
                <table id="wsd_listtable" width="100%">
                    <tr>
                        <td style="width: 100%">
                            <asp:GridView Width="100%" ID="GridView1" runat="server" AutoGenerateColumns="False"
                                EmptyDataText="没有可显示的数据." EmptyDataRowStyle-Font-Bold="true" EmptyDataRowStyle-HorizontalAlign="Center"
                                 EnableEmptyContentRender="true" DataKeyNames="ID"
                                AllowPaging="True" BorderWidth="0"  PageSize="12" EnableModelValidation="True">
                                <HeaderStyle CssClass="titlist" />
                                <EmptyDataRowStyle HorizontalAlign="Center" Font-Bold="True"></EmptyDataRowStyle>
                                <Columns>
                                    <asp:BoundField HeaderText="编号" DataField="CODE" ReadOnly="true" />
                                    <asp:BoundField HeaderText="名称" DataField="NAME" ReadOnly="true" />
                                    <asp:BoundField HeaderText="输入类型" DataField="INPUTTYPE" ReadOnly="true" />
                                    <%--<asp:BoundField HeaderText="值类型" DataField="VALUETYPE" ReadOnly="true" />--%>
                                    <asp:TemplateField HeaderText="是否拍照">
                                        <ItemTemplate>
                                            <b>
                                                <%# (bool)Eval("ISPHOTO") ? "<font size='3' color='green'>√</font>" : "<font size='3' color='red'>×</font>"%>
                                            </b>
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="是否必填">
                                        <ItemTemplate>
                                            <b>
                                                <%# (bool)Eval("ISREQUIRED") ? "<font size='3' color='green'>√</font>" : "<font size='3' color='red'>×</font>"%>
                                            </b>
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="有效">
                                        <ItemTemplate>
                                            <b>
                                                <%# (bool)Eval("ACTIVE") ? "<font size='3' color='green'>√</font>" : "<font size='3' color='red'>×</font>"%>
                                            </b>
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                    <asp:BoundField HeaderText="备注" DataField="REMARK" ReadOnly="true" />
                                     <asp:TemplateField HeaderText="全选">
                                        <HeaderTemplate>
                                            <input type="checkbox" id="chkAll" name="chkAll" onclick="Check1(this,'cbxSelected')" />全选
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:CheckBox runat="server" ID="cbxSelected"  />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <RowStyle CssClass="evenline" />
                                <AlternatingRowStyle CssClass="oddline" />
                                <PagerSettings FirstPageText="首页" LastPageText="尾页" PageButtonCount="30" Visible="false" />
                            </asp:GridView>
                            <uc1:GridPager ID="GridPager1" runat="server" Visible="false" />
                        </td>
                    </tr>
                </table>
                <br />
                <table id="wsd_inputtable">
                    <tr>
                        <td width="100%" class="tabletitle">
                            操作选项
                        </td>
                    </tr>
                    <tr>
                        <td class="buttonarea">
                            <asp:Button ID="btnSave" runat="server" CausesValidation="false" class="wsd_button2" Text="保 存" />
                        </td>
                    </tr>
                </table>
            </div>
            </div> </div> </div>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
            <%--<asp:AsyncPostBackTrigger ControlID="btnCancel" EventName="Click" />--%>
        </Triggers>
    </asp:UpdatePanel>
   
</asp:Content>
